package com.yanqu.road.server.logic.activity.tradewar.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.logic.activity.tradewar.TradeWarActivityData;
import com.yanqu.road.server.manger.activity.TradeWarActivityRankMgr;

public abstract class BaseTradeWarActivityRankCondition extends BaseTradeWarActivityCondition{

    public BaseTradeWarActivityRankCondition(GamePlayer player, TradeWarActivityData activityData, ActivityConditionInfo conditionInfo) {
        super(player, activityData, conditionInfo);
    }

    protected void rankChange() {
        TradeWarActivityRankMgr.changeRank(activityData.getActivityId(), player.getUserInfo(), getValue());
    }
}
